﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Axiom.Hermetica.WPF.ViewModels
{
	public class ViewModelLocator
	{
		private static ViewModel _mainViewModel;

		public static ViewModel GetMainViewModel()
		{
			if (_mainViewModel == null)
			{
				_mainViewModel = new ViewModel();
			}
			return _mainViewModel;
		}

		private static MutiEditorViewModel _multiEditorViewModel;

		public static MutiEditorViewModel GetMultiEditorViewModel()
		{
			if (_multiEditorViewModel == null)
			{
				_multiEditorViewModel = new MutiEditorViewModel(_mainViewModel);
			}
			return _multiEditorViewModel;
		}
	}
}
